import axios from "axios";

//修改信息
let account = (data) => axios.put('/api/admin/account', data);

//管理员个人资料
let info = (params) => axios.get('/api/admin', { params });

//更新管理员
let edit = (data) => axios.put('/api/admin', data);

//删除管理员
let remove = (params) => axios.delete('/api/admin', { params });

export default {
	account,
	info,
	edit,
	remove
}
